#ifndef IMAGELABEL_H
#define IMAGELABEL_H

#include <QLabel>

class ImageLabel : public QLabel
{
    Q_OBJECT
public:
    explicit ImageLabel(QWidget *parent = nullptr);
    ~ImageLabel();

protected:
    void dragEnterEvent(QDragEnterEvent*event) Q_DECL_OVERRIDE;//拖曳进入事件
    void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;//拖曳移动事件
    void dropEvent(QDropEvent *event) Q_DECL_OVERRIDE;//拖曳释放事件
    void dragLeaveEvent(QDragLeaveEvent *event);//拖曳离开事件

    //void paintEvent(QPaintEvent *event);
signals:

protected:
    QList<QString> m_DataList;
    QImage m_data;
};

#endif // IMAGELABEL_H
